package com.java80.springmall.cloud.user.consumer.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import com.java80.springmall.cloud.user.consumer.entity.User;
import com.java80.springmall.cloud.user.consumer.fallback.UserServiceFallBack;

@FeignClient(value="mall-user-provider",fallback=UserServiceFallBack.class)
public interface UserService {
	@GetMapping("/user/get/{id}")
	public User findById(@PathVariable("id") Long id);
	@PostMapping("/user/login")
	public User login(String username);
}
